<foreignObject
  xmlns="http://www.w3.org/2000/svg"
  id="g-svg-1452"
  class="poptip"
>
  <div xmlns="http://www.w3.org/1999/xhtml">
    <div style="background-color:red;color:#fff;width:max-content;padding:1px 4px;font-size:12px;border-radius:2.5px;box-shadow:0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)">
      Rectangle
    </div>
  </div>
</foreignObject>